package lesson18;

public class AbstractionDemos {

		public static void main(String[] args) 
		{
//			Shop myShop = new Shop();
//			
//			Movable car = new Car();
//			Car carConcrete = new Car();
//			Drivable carDrivable = new Car();
//			
//			
//			Movable jeep = new Jeep();
			
//			Mammal human = new Human();
//			human.breath();
//			human.makeNoise();
//			
//			Mammal cat = new Cat();
//			cat.breath();
//			cat.makeNoise();
//			
			Zoo myZoo = new Zoo();
			
			myZoo.mammals[0] = new Cat();
			myZoo.mammals[1] = new Elephant();
			
			System.out.println(myZoo.mammals[0] instanceof Movable);
			
			myZoo.makeAllAnimalsNoisy();
		}
}
